package com.gzyz.cheetah.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gzyz.cheetah.enums.entityproperty.UserStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户表DTO
 * </p>
 *
 * @author xclhove
 * @since 2023-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value = "UserDTO对象", description = "用户表DTO")
public class UserDTO {
    
    @ApiModelProperty(value = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @ApiModelProperty(value = "用户名")
    private String username;
    
    @ApiModelProperty(value = "密码")
    private String password;
    
    @ApiModelProperty(value = "手机号")
    private String phone;
    
    @ApiModelProperty(value = "邮箱")
    private String email;
    
    @ApiModelProperty(value = "存储空间(默认1024*1024*1024B=1GB)")
    private Long storageSize;
    
    @ApiModelProperty(value = "状态(1：正常 2：冻结)")
    private UserStatus status;
    
    @ApiModelProperty(value = "注册时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
}